//
//  BeLostSelectFindPetVC.m
//  PetAPP
//
//  Created by apple on 16/2/3.
//  Copyright © 2016年 Yuming. All rights reserved.
//

#import "BeLostSelectFindPetVC.h"

@interface BeLostSelectFindPetVC ()

@property (nonatomic, retain) UIWebView *webView;

@end

@implementation BeLostSelectFindPetVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"选择宠物";
    [self createWebView];
}

- (void)createWebView {
    
    self.webView = [[UIWebView alloc] initWithFrame:self.view.frame];
    [self.view addSubview:self.webView];
    [_webView release];
    self.webView.dataDetectorTypes = UIDataDetectorTypeAll;
    self.webView.userInteractionEnabled = YES;
    self.webView.backgroundColor = [UIColor whiteColor];
    self.webView.opaque = NO;
    
    
    
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://m.weibaquan.com/index.php?m=Home&c=prelose&a=petList&uid=%@&lat=45.79560855&lng=126.78713024", [[NSUserDefaults standardUserDefaults] stringForKey:@"uid"]]];
    
    [self.webView loadRequest:[NSURLRequest requestWithURL:url]];
    



}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
